package savelog;

/**
 * Title: Games class for CSIS 343 Final Project 
 * Description: CS 343 Final Project - Games This class will handle all of the games the user has
 * 
 * @author Erik Olson
 * @email erik.olson-5@my.uwrf.edu
 * @author Mike Harmon
 * @email michael.harmon@my.uwrf.edu
 * @author Jack Friermuth
 * @email jack.friermuth@my.uwrf.edu
 * @author Luke Vang
 * @email luke.vang@my.uwrf.edu
 * @author Casey Golla
 * @email casey.golla@my.uwrf.edu
 * @date December 4th 2012
 */
public class Games {	
	//id of the game 
	private int game_id;
	
	//title of the game
	private String game_title;
	
	//path to the game cover
	private String game_cover;
	
	//device the game came from
	private int dev_id;
	
	//system the game is on
	private int sys_id;

	/**
	 * method to get the system id
	 * @return int sys_id :		the id of the system the game is on
	 */
	public int getSys_id() {
		return sys_id;
	}

	/**
	 * method to set the system id
	 * @param int sys_id :		the new system id
	 */
	public void setSys_id(int sys_id) {
		this.sys_id = sys_id;
	}

	/**
	 * Default constructor
	 */
	public Games(){
		game_title = "";
		game_id = 0;
		dev_id = 0;
		game_cover = "";
		sys_id = 0;
	}
	
	/**
	 * Alternate constructor
	 * @param String gTitle :		title of game
	 * @param int gID		 :		id of game
	 * @param int dID		 :		id of device game is from
	 * @param String gCover :		path to game cover
	 * @param int sID		 :		id of system game is on		
	 */
	public Games(String gTitle, int gID, int dID, String gCover, int sID){
		game_title = gTitle;
		game_id = gID;
		dev_id = dID;
		game_cover = gCover;
		sys_id = sID;
	}

	/**
	 * method to get the game id
	 * @return int game_id :	the id of the game
	 */
	public int getGame_id() {
		return game_id;
	}

	/**
	 * method to set the game id
	 * @param int game_id : the new game id
	 */
	public void setGame_id(int game_id) {
		this.game_id = game_id;
	}

	/**
	 * method to get the title of the game
	 * @return string game_title :		the title of the game
	 */
	public String getGame_title() {
		return game_title;
	}

	/**
	 * method to set the title of the game
	 * @param string game_title : 		the new game title
	 */
	public void setGame_title(String game_title) {
		this.game_title = game_title;
	}

	/**
	 * method to get the path to the game cover
	 * @return String game_cover :		the path to the cover for the game
	 */
	public String getGame_cover() {
		return game_cover;
	}

	/**
	 * :method to set the path to the game cover
	 * @param String game_cover :		new path to the game cover
	 */
	public void setGame_cover(String game_cover) {
		this.game_cover = game_cover;
	}

	/**
	 * method to get the device id
	 * @return int dev_id : 	the device id
	 */
	public int getDev_id() {
		return dev_id;
	}

	/**
	 * method to set the device id
	 * @param int dev_id : the new device id
	 */
	public void setDev_id(int dev_id) {
		this.dev_id = dev_id;
	}

	@Override
	public String toString() {
		return "Games [game_id=" + game_id + ", game_title=" + game_title
				+ ", game_cover=" + game_cover + ", dev_id=" + dev_id
				+ ", sys_id=" + sys_id + "]";
	}
}
